package com.taotao.sys.service.impl;

import com.gitee.fastmybatis.core.support.BaseLambdaService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Preconditions;
import com.taotao.sys.dao.SysFuncMapper;
import com.taotao.sys.entity.SysFunc;
import com.taotao.sys.service.SysFuncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 系统功能服务接口实现类
 * </p>
 *
 * @author Fan Beibei
 * @version V1.0
 * @since 2025-05-18 23:03:08
 */
@Slf4j
@Service
public class SysFuncServiceImpl extends BaseLambdaService<SysFunc, SysFuncMapper> implements SysFuncService {
    @Resource
    private SysFuncMapper sysFuncMapper;


    @Override
    public PageInfo<SysFunc> queryByPage(SysFunc param, int pageNum, int pageSize) {
        Preconditions.checkArgument(pageNum > 0);
        Preconditions.checkArgument(pageSize > 0);

        Page<SysFunc> page = sysFuncMapper.selectByPage(param, pageNum, pageSize);

        return new PageInfo<>(page);
    }


//------------以上是生成代码-----------------------------------------------------------------------------------------------------------------


}
